package top.arwtec.mcm.service;


import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.security.core.userdetails.User;
import org.springframework.security.core.userdetails.UserDetails;
import top.arwtec.mcm.entity.UserInfo;

import java.util.List;

public interface UserInfoService extends IService<UserInfo> {
    UserDetails getUserInfo(String name);

    UserInfo getUserInfo(Wrapper<UserInfo> userWrapper);

    List<UserInfo> getUserInfoList(Wrapper<UserInfo> userWrapper);

    boolean saveUserInfo(UserInfo user);

    boolean updateUserInfo(UserInfo user);

    boolean deleteUserInfo(Long id);
}
